package top.gcl.json;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.gcl.entities.Notice;

/**
 * json封装类
 * 将执行成功、失败的信息封装成类，返回给前端json
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult<T> {
    private int code;
    private String msg;
    private Notice notice;
    public JsonResult(int code, String msg){
        this(code,msg,null);
    }
}
